Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to AndroidX #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Migrate to AndroidX #4

wants to merge 3 commits into from

Conversation

KennyDizi
Copy link

Migrate to AndroidX

@muhaym
Copy link
Owner

muhaym commented Apr 2, 2020

@xamarindevelopervietnam Thanks for the PR, have added some comments, please check

@KennyDizi
Copy link
Author

Hi @muhaym, i didn't see any comment.

using Xamarin.Forms;
using Android.Support.Design.BottomNavigation;
using Google.Android.Material.BottomNavigation;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -70,7 +68,7 @@ private void UpdateIcons(int selectedIndex)
var icon = Transforms.GetSelectedIcon(page);
if (string.IsNullOrWhiteSpace(icon))
{
menu.GetItem(i).SetIcon(IdFromTitle(page.IconImageSource ?? page.Icon, ResourceManager.DrawableClass));
menu.GetItem(i).SetIcon(IdFromTitle(page.IconImageSource ?? page.IconImageSource, ResourceManager.DrawableClass));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you did this change. If IconImageSource is already set, it will be taken, then page.Icon.

@muhaym
Copy link
Owner

muhaym commented Apr 13, 2020

Hi @muhaym, i didn't see any comment.

Forgot to Submit Review :D, Added Now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants